package com.baobaotao.advice;

import java.lang.reflect.Method;

import org.springframework.aop.AfterReturningAdvice;

public class GreetingAfterAdvice implements AfterReturningAdvice {
    //在目标类方法执行之后调用
	@Override
	public void afterReturning(Object arg0, Method arg1, Object[] arg2,
			Object arg3) throws Throwable {
		System.out.println("arg0"+arg0);
		System.out.println("arg1"+arg1);
		System.out.println("arg2"+arg2[0]);
		System.out.println("Please enjoy yourself");
		
	}

}
